(function() {
    Ext.Loader.setConfig({
        enabled : true
    });
    
})();

Ext.application({
	name: 'SA',
	appFolder: '/survey-web/js/im/app',
	
	controllers: ['Survey'],
	
	launch: function() {
		Ext.create('Ext.container.Container', {
			layout: 'hbox',
			renderTo: 'administration-viewport',
			items: [{
				xtype: 'surveyeditor',
				region: 'west',
				width: 300,
				height: 600
			}, {
				xtype: 'questionpanel',
				region: 'east',
				width: 570,
				height: 600
				
			}]

		});
		
		// TODO Find the survey id from the location bar, or create a new survey model to load
		// TODO For the 'Question' form, add tool bar to add new question/answer language from language store 
		console.log('SA launch() fired.');
		
	}


});

